package com.etoak.car.mapper;



import com.etoak.car.bean.Admin;
import com.etoak.car.bean.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {


    int getId(int id);

    int register(Users users);

    Admin queryAdminByNameAndPwd(@Param("u") String username, @Param("p") String password);

    Admin isAdmin(String username, String password);

    int updateAdmin(String username, String newPassword);
}
